package demoMod.stsconsole.rooms;

import demoMod.stsconsole.ConsoleEntry;
import demoMod.stsconsole.dungeons.AbstractDungeon;
import demoMod.stsconsole.interfaces.DropRewardSubscriber;
import demoMod.stsconsole.rewards.CardReward;
import demoMod.stsconsole.rewards.GoldReward;
import demoMod.stsconsole.rewards.PotionReward;
import demoMod.stsconsole.rewards.RelicReward;

public class MonsterRoomElite extends MonsterRoom {
    @Override
    public String getRoomSymbol() {
        return "E";
    }

    @Override
    public void dropReward() {
        if (this.shouldDropReward) {
            this.rewards.add(new CardReward());
            this.rewards.add(new GoldReward(this.goldAmount));
            if (AbstractDungeon.potionRng.nextBoolean(0.2F)) {
                this.rewards.add(new PotionReward());
            }
            this.rewards.add(new RelicReward());
        }
        ConsoleEntry.triggerSubscribers(DropRewardSubscriber.class, "onDropReward",
                new Class[]{boolean.class}, new Object[]{this.shouldDropReward});
    }
}
